package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Discuss;
import com.sk.bilibili.bean.Member;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

@Mapper
public interface DiscussMapper {

    @POST("discuss/getDiscuss")
    Observable<Res<Page<Discuss>>> getDiscuss(@Body JsonMap map);

    @POST("discuss/add")
    Observable<Res<Void>> add(@Body JsonMap map);

    @GET("discuss/delete")
    Observable<Res<Void>> delete(@Query("id") Integer id);

}